<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
    <link rel="icon" href="<%= BASE_URL %>colorfulLogo.png">
    <!-- import  'https://at.alicdn.com/t/c/font_4893079_7rb742f13zc.css'
 -->
 <!-- <link rel="stylesheet" href="//at.alicdn.com/t/font_1261797_48wm20jf8z.css"> -->

     <title><%= htmlWebpackPlugin.options.title %></title>
  </head>
  <body>
    <script src = "https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.min.js"></script>
    <noscript>
      <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <script>
      // 微信网页授权返回 获取授权code
      const param = new URLSearchParams(location.href.split('?')[1])
      const code = param.get('code')
      const state = decodeURIComponent(param.get('state'))

      if (code) {
        sessionStorage.setItem('code', code)
        let url = location.origin + '/#/mobile'
        if (state) url += '?' + state
        location.href = url
      }
    </script>
    <!-- built files will be auto injected -->
  </body>
</html>
